package com.ywjt.platformbusiness.store.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ywjt.platformbusiness.R;
import com.ywjt.platformbusiness.store.order.model.SortingCenterModel;

import java.util.List;

public class SortingCenterAdapter extends BaseQuickAdapter<SortingCenterModel.ResultDTO, BaseViewHolder> {

    public SortingCenterAdapter(@Nullable List<SortingCenterModel.ResultDTO> data) {
        super(R.layout.item_sorting_center, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SortingCenterModel.ResultDTO item) {
            helper.setText(R.id.tvTitle,item.getName());
            helper.setText(R.id.tvDistance,item.getDistance()+"|"+item.getAddress());
    }
}
